package service

import (
	sqlc "bgs/db/sqlc"
	"context"
)

// GetBrandEndorsementPtr
func (s *BrandServiceImp) GetBrandEndorsementPtr(ctx context.Context, q *sqlc.Queries, brandID int64) (ptr *sqlc.BrandEndorsement, err error) {
	entity, err := q.GetBrandEndorsementByBrandID(ctx, brandID)
	if err != nil {
		return
	}
	ptr = &entity
	return
}